package com.hdax.dmw.item.mappers;

import com.hdax.dmw.entity.item.Item;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author guoyisha
* @description 针对表【dm_item(节目表)】的数据库操作Mapper
* @createDate 2023-06-18 14:55:02
* @Entity com.hdax.dmw.entity.item.Item
*/
public interface ItemMapper extends BaseMapper<Item> {

    @Select({
         "<script>",
            "select * from dm_item i, dm_cinema c where i.cinemaId=c.id and i.id=#{itemId}",
         "</script>",
    })
    Item getItems(@Param("itemId")Long itemId);
}




